<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%> 
<%@ page import="bean.AlarmInfo" %>
<%@ page import="dao.AlarmDao" %> 
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml"><head>
    <title></title>
    	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <link href="<%=request.getContextPath() %>/css/SonPage.css" rel="stylesheet" type="text/css">
    <link href="<%=request.getContextPath() %>/css/Element.css" rel="stylesheet" type="text/css">
    <link href="<%=request.getContextPath() %>/css/easyui.css" rel="stylesheet" type="text/css">
    <link href="<%=request.getContextPath() %>/css/icon.css" rel="stylesheet" type="text/css">
    <script src="<%=request.getContextPath() %>/js/Mtopt_1.1.js" type="text/javascript"></script>
    <script src="<%=request.getContextPath() %>/js/SonPage.js" type="text/javascript"></script>
    <script src="<%=request.getContextPath() %>/js/jquery-1.8.3.js" type="text/javascript"></script>
    <script src="<%=request.getContextPath() %>/js/jquery.easyui.min.js" type="text/javascript"></script>
    <script src="<%=request.getContextPath() %>/js/easyui-lang-zh_CN.js" type="text/javascript"></script>
    <style type="text/css">.DivShowData{ position:static; width:1180px;height:600px;}
.table {
    width: 990px;
    border: 1px solid #95B8E7;
}</style>
   
<body>
<% AlarmDao adao=new AlarmDao();
   List<AlarmInfo> list=adao.getAllAlarm();%>
    <table class="DivShowData">
       <tbody>
         <tr>
            <td style="height: 100%;width: 30%;" class="panel-noscroll">
               <div class="panel datagrid" style="width: 402px;">
               <div class="panel-header" style="width: 390px;">
	                <div class="panel-title">联系人明细</div>
	                <div class="panel-tool"></div>
                </div>
                </div>
                <div class="datagrid-wrap panel-body" title="" style="width: 400px; height: 565px;">
                <div class="datagrid-toolbar">
                   <table cellspacing="0" cellpadding="0">
                      <tbody>
                         <tr> 
                            <td>
                               <a href="../alarmPeople/addAlarmPeople.jsp" class="l-btn l-btn-plain" id="">
                               <span class="l-btn-left">
                               <span class="l-btn-text icon-add l-btn-icon-left">增加</span>
                               </span>
                               </a>
                            </td>
                           <!-- <td>
                               <a href="javascript:void(0)" class="l-btn l-btn-plain" id="">
	                               <span class="l-btn-left">
	                               <span class="l-btn-text icon-edit l-btn-icon-left">修改</span>
	                               </span>
                               </a>
                            </td>
                            <td>
                               <a href="javascript:void(0)" class="l-btn l-btn-plain" id="">
	                               <span class="l-btn-left">
	                               <span class="l-btn-text icon-remove l-btn-icon-left">删除</span>
	                               </span>
                               </a>
                            </td>
                            -->
                            <td>
                               <a href="AlarmManage.jsp" class="l-btn l-btn-plain" id="">
                                  <span class="l-btn-left">
                                  <span class="l-btn-text icon-reload l-btn-icon-left">刷新</span>
                                  </span>
                               </a>
                            </td>
                         </tr>
                      </tbody>
                   </table>
                </div>
                <div class="datagrid-view" style="width: 400x; height: 536px;">
                <style type="text/css">
						div.datagrid-cell-c3-SMSUID {width:0px;}
						div.datagrid-cell-c3-PhoneUserName {width:101px;}
						div.datagrid-cell-c3-PhoneNumber {width:101px;}
						div.datagrid-cell-c3-PhoneUserRemark {width:102px;}
                </style>
                <style type="text/css">
						div.datagrid-cell-c1-SMSUID {width:undefinedpx;}
						div.datagrid-cell-c1-PhoneUserName {width:82px;}
						div.datagrid-cell-c1-PhoneNumber {width:82px;}
						div.datagrid-cell-c1-PhoneUserRemark {width:82px;}
                </style>
  <div class="datagrid-view2" style="width: 400px;">
     <div class="datagrid-header" style="width: 400px;">
        <div class="datagrid-header-inner" style="display: block;">
           <table class="datagrid-htable">
              <tbody>
                 <tr class="datagrid-header-row">
                    <td field="SMSUID" style="display: none;">
                       <div class="datagrid-cell" style="width: 0px;">
	                       <span></span>
	                       <span class="datagrid-sort-icon">&nbsp;</span>
                       </div>
                    </td>
                    <td field="PhoneUserName">
                       <div class="datagrid-cell" style="width: 101px; text-align: center;">
                           <span>联系人</span>
                           <span class="datagrid-sort-icon">&nbsp;</span>
                        </div>
                     </td>
                     <td field="PhoneNumber" class="">
                        <div class="datagrid-cell" style="width: 101px; text-align: center;">
                           <span>手机号</span>
                           <span class="datagrid-sort-icon">&nbsp;</span>
                        </div>
                     </td>
                     <td field="PhoneUserRemark">
                        <div class="datagrid-cell" style="width: 102px; text-align: center;">
                           <span>备注</span>
                           <span class="datagrid-sort-icon">&nbsp;</span>
                        </div>
                     </td>
                  </tr>
                    <%for(AlarmInfo ainfo:list) {%>
                  <tr>

                     <td style="text-align: center;"><%=ainfo.getName() %></td>
                     <td style="text-align: center;"><%=ainfo.getPhone() %></td>
                     <td style="text-align: center;"><%=ainfo.getBeizhu() %></td>
                     <td>
                        <a href="<%=request.getContextPath() %>/deleAlarmServlet?id=<%=ainfo.getAlarmPeople_id() %>">删除</a>
                     </td>
                  </tr>
                    <%} %>
               </tbody>
            </table>
         </div>
      </div>
    </div>
   </div>
   </td>
   <td>
      <div class="datagrid-body">
      <table class="datagrid-btable" >
         <tbody>
            <tr id="datagrid-row-r1-2-0">
               <td style="height: 100%;width: 70%;" class="panel-noscroll">
                   <div class="panel datagrid" style="width: 800px;">
                      <div class="panel-header" style="width: 790px;">
                         <div class="panel-title">接收污染源</div>
                         <div class="panel-tool"></div>
                      </div>
                      <div class="datagrid-wrap panel-body" title="" style="width: 800px; height: 565px;">
                         <div class="datagrid-toolbar">
                            <table cellspacing="0" cellpadding="0">
                               <tbody>
                                  <tr>
                                     <td>
                                        <a href="javascript:void(0)" class="l-btn l-btn-plain" id="">
                                           <span class="l-btn-left">
                                           <span class="l-btn-text icon-save l-btn-icon-left">保存</span>
                                           </span>
                                        </a>
                                     </td>
                                  </tr>
                               </tbody>
                            </table>
                         </div>
                         <div class="datagrid-view" style="width: 800px; height: 536px;">
                            <style type="text/css">
									div.datagrid-cell-c2-PolluteSourceName {width:92px;}
									div.datagrid-cell-c2-DischargePortName {width:42px;}
									div.datagrid-cell-c2-Check {width:12px;}
 							</style>
			 			<div class="datagrid-view2" style="width: 800px;">
			 			   <div class="datagrid-header" style="width: 800px; height: 24px;">
			 			      <div class="datagrid-header-inner" style="display: block;">
			 			         <table class="datagrid-htable" border="0" cellspacing="0" cellpadding="0" style="height: 25px;">
			 			            <tbody>
			 			               <tr class="datagrid-header-row">
			 			                  <td field="PolluteSourceName" class="">
			 			                     <div class="datagrid-cell" style="width: 460px; text-align: left;">
			 			                        <span>企业</span>
			 			                        <span class="datagrid-sort-icon">&nbsp;</span>
			 			                     </div>
			 			                  </td>
			 			                  <td field="DischargePortName">
			 			                     <div class="datagrid-cell" style="width: 226px; text-align: center;">
			 			                        <span>排放口</span>
			 			                        <span class="datagrid-sort-icon">&nbsp;</span>
			 			                     </div>
			 			                  </td>
			 			                  <td field="Check">
			 			                     <div class="datagrid-cell" style="width: 86px; text-align: center;">
			 			                        <span><input id="detailcheckbox" type="checkbox">全选</span>
			 			                        <span class="datagrid-sort-icon">&nbsp;</span>
			 			                     </div>
			 			                  </td>
			 			               </tr>
			 			            </tbody>
			 			         </table>
			 			      </div>
			 			   </div>			 			 			   
			 			</div>
			 			<div id="ItemInfo" style="display: none;"></div>
			         </div>
			         </div>
			      </div>
                </td>
                <div id="MecInfo"></div>
        </tr>       
    </tbody>
 </table>
 </div>
 </div>
   </td>
  </tr>
 </tbody>
</table>
</body>
</html>